﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XS.Tunnel.Cad.SteelBracing.Component;
using XS.Tunnel.Cad.SteelBracing.Component.SteelShotcrete;
using XS.Tunnel.Cad.SteelBracing.Component.SteelShotcrete.UniversalBeamComponent;
using XS.Tunnel.Cad.SteelBracing.Infrastructure;
using XS.Tunnel.Cad.SteelBracing.Infrastructure.Extensions;

namespace XS.Tunnel.Cad.SteelBracing
{
    public class SteelBracingComponent
    {

        /// <summary>
        /// 暗洞信息
        /// </summary>
        public DarkHoleInfo Info { get; }
        public AbstractSteelShotcrete SteelShotcrete { get; private set; }

        public SteelBracingComponent(DarkHoleInfo info ) 
        {
            Info = info;
        }


        public void CreateSteelShotcrete(IList<ISysPoint> pointData, SteelShotcreteParameter parameter)
        { 
            SteelShotcrete=new UniversalBeamBuild(Info, pointData, parameter);
        }
         


        public void Draw()
        {

            SteelShotcrete.Draw();
        }

    }
}
